﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>js非常常用的一些方法，很实用，哪里都能用的到</title>
    <link href="utilPackage/utilFn.css" rel="stylesheet" />
    <script src="utilPackage/jquery-1.11.3.min.js"></script>
    <script src="src/utilFn.min.js"></script>
    <script src="http://sdk.talkingdata.com/app/h5/v1?appid=56AE234A4CD4488E8BF20299E993976E&vn=uitlFn&vc=1.0.1"></script>

</head>

<body>
    <div class="page-full">
        <div class="page-left">
            <ul id="tree"
                style="height:100%;overflow:hidden;overflow-y:auto;margin:0px;padding-top:40px;padding-bottom:40px;">
                <li>
                    <a data-href="./subPage/jianjie.html" onclick="skipurl(this)">utilFn简介</a>
                    <ul>
                        <li><a data-href="./subPage/jianjie.html#jianrong" onclick="skipurl(this)">utilFn的兼容性</a></li>
                        <li><a data-href="./subPage/jianjie.html#kaiyuan" onclick="skipurl(this)">utilFn是开源的</a></li>
                        <li><a data-href="./subPage/jianjie.html#xiazai" onclick="skipurl(this)">下载地址与使用方法</a></li>
                        <li><a data-href="./subPage/jianjie.html#yingyong" onclick="skipurl(this)">utilFn是应用范围</a></li>
                        <li><a data-href="./subPage/jianjie.html#jianyi" onclick="skipurl(this)">给大家的建议</a></li>
                    </ul>
                </li>
                <li>
                    <a data-href="./subPage/stringUtilFn.html" onclick="skipurl(this)">字符串常用的方法</a>
                    <ul>
                        <li><a data-href="./subPage/stringUtilFn.html#trim" onclick="skipurl(this)">trim</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#lTrim" onclick="skipurl(this)">lTrim</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#rTrim" onclick="skipurl(this)">rTrim</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#resetBlank" onclick="skipurl(this)">resetBlank</a>
                        </li>
                        <li><a data-href="./subPage/stringUtilFn.html#getNum" onclick="skipurl(this)">getNum</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#getInt" onclick="skipurl(this)">getInt</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#getFloat" onclick="skipurl(this)">getFloat</a>
                        </li>
                        <li><a data-href="./subPage/stringUtilFn.html#getCN" onclick="skipurl(this)">getCN</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#toInt" onclick="skipurl(this)">toInt</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#getLen" onclick="skipurl(this)">getLen</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#getCount" onclick="skipurl(this)">getCount</a>
                        </li>
                        <li><a data-href="./subPage/stringUtilFn.html#getFileName"
                                onclick="skipurl(this)">getFileName</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#getFileExt" onclick="skipurl(this)">getFileExt</a>
                        </li>
                        <li><a data-href="./subPage/stringUtilFn.html?id=12#getQueryString"
                                onclick="skipurl(this)">getQueryString</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#replaceAll" onclick="skipurl(this)">replaceAll</a>
                        </li>
                        <li><a data-href="./subPage/stringUtilFn.html#toDate" onclick="skipurl(this)">toDate</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#like" onclick="skipurl(this)">like</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#isLike" onclick="skipurl(this)">isLike</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#isLeftLike" onclick="skipurl(this)">isLeftLike</a>
                        </li>
                        <li><a data-href="./subPage/stringUtilFn.html#isRightLike"
                                onclick="skipurl(this)">isRightLike</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#cuter" onclick="skipurl(this)">cuter</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#xmlClear" onclick="skipurl(this)">xmlClear</a>
                        </li>
                        <li><a data-href="./subPage/stringUtilFn.html#sameCharNumber"
                                onclick="skipurl(this)">sameCharNumber</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#guid" onclick="skipurl(this)">guid</a></li>
                        <li><a data-href="./subPage/stringUtilFn.html#toUnicode" onclick="skipurl(this)">toUnicode</a>
                        </li>
                        <li><a data-href="./subPage/stringUtilFn.html#toHanzi" onclick="skipurl(this)">toHanzi</a></li>
                    </ul>
                </li>

                <li>
                    <a data-href="./subPage/NumberUtilFn.html" onclick="skipurl(this)">数字处理常用的方法</a>
                    <ul>
                        <li><a data-href="./subPage/NumberUtilFn.html#lenWithZero"
                                onclick="skipurl(this)">lenWithZero</a></li>
                        <li><a data-href="./subPage/NumberUtilFn.html#toFixed" onclick="skipurl(this)">toFixed</a></li>
                        <li><a data-href="./subPage/NumberUtilFn.html#decimal" onclick="skipurl(this)">decimal</a></li>
                        <li><a data-href="./subPage/NumberUtilFn.html#percent" onclick="skipurl(this)">percent</a></li>
                        <li><a data-href="./subPage/NumberUtilFn.html#RMB" onclick="skipurl(this)">RMB</a></li>
                        <li><a data-href="./subPage/NumberUtilFn.html#currency" onclick="skipurl(this)">currency</a>
                        </li>
                        <li><a data-href="./subPage/NumberUtilFn.html#numShort" onclick="skipurl(this)">numShort</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a data-href="./subPage/DateUtilFn.html" onclick="skipurl(this)">时间处理常用的方法</a>
                    <ul>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#toDate" onclick="skipurl(this)">toDate</a>
                        </li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#getCNDate" onclick="skipurl(this)">getCNDate</a>
                        </li>
                        <li><a data-href="./subPage/DateUtilFn.html#format" onclick="skipurl(this)">format</a></li>
                        <li><a data-href="./subPage/DateUtilFn.html#duration" onclick="skipurl(this)">duration</a></li>
                        <li><a data-href="./subPage/DateUtilFn.html#addDate" onclick="skipurl(this)">addDate</a></li>
                        <li><a data-href="./subPage/DateUtilFn.html#diff" onclick="skipurl(this)">diff</a></li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#addMilliseconds"
                               onclick="skipurl(this)">addMilliseconds</a>
                        </li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#addSeconds" onclick="skipurl(this)">addSeconds</a>
                        </li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#addMinutes" onclick="skipurl(this)">addMinutes</a>
                        </li>
                        <li><a data-href="./subPage/DateUtilFn.html#addHours" onclick="skipurl(this)">addHours</a></li>
                        <li><a data-href="./subPage/DateUtilFn.html#addDays" onclick="skipurl(this)">addDays</a></li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#addMonths" onclick="skipurl(this)">addMonths</a>
                        </li>
                        <li><a data-href="./subPage/DateUtilFn.html#addYears" onclick="skipurl(this)">addYears</a></li>
                        <li><a data-href="./subPage/DateUtilFn.html#getWeek" onclick="skipurl(this)">getWeek</a></li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#getQuarterStartMonth"
                               onclick="skipurl(this)">getQuarterStartMonth</a>
                        </li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#getWeekStartDate"
                               onclick="skipurl(this)">getWeekStartDate</a>
                        </li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#getWeekEndDate"
                               onclick="skipurl(this)">getWeekEndDate</a>
                        </li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#getMonthStartDate"
                               onclick="skipurl(this)">getMonthStartDate</a>
                        </li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#getMonthEndDate"
                               onclick="skipurl(this)">getMonthEndDate</a>
                        </li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#getQuarterStartDate"
                               onclick="skipurl(this)">getQuarterStartDate</a>
                        </li>
                        <li>
                            <a data-href="./subPage/DateUtilFn.html#getQuarterEndDate"
                               onclick="skipurl(this)">getQuarterEndDate</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a data-href="./subPage/StringToObjUtilFn.html" onclick="skipurl(this)">字符串与对象转换常用的方法</a>
                    <ul>
                        <li><a data-href="./subPage/StringToObjUtilFn.html#cookie2obj"
                                onclick="skipurl(this)">cookie2obj</a></li>
                        <li><a data-href="./subPage/StringToObjUtilFn.html#obj2cookie"
                                onclick="skipurl(this)">obj2cookie</a></li>
                        <li><a data-href="./subPage/StringToObjUtilFn.html#css2obj" onclick="skipurl(this)">css2obj</a>
                        </li>
                        <li><a data-href="./subPage/StringToObjUtilFn.html#obj2css" onclick="skipurl(this)">obj2css</a>
                        </li>
                        <li><a data-href="./subPage/StringToObjUtilFn.html#string2obj"
                                onclick="skipurl(this)">string2obj</a></li>
                        <li><a data-href="./subPage/StringToObjUtilFn.html#obj2string"
                                onclick="skipurl(this)">obj2string</a></li>
                        <li><a data-href="./subPage/StringToObjUtilFn.html#Cookie" onclick="skipurl(this)">Cookie</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a data-href="./subPage/JsonUtilFn.html" onclick="skipurl(this)">Json常用的处理方法</a>
                    <ul>
                        <li><a data-href="./subPage/JsonUtilFn.html#extend" onclick="skipurl(this)">extend</a></li>
                        <li><a data-href="./subPage/JsonUtilFn.html#isEqual" onclick="skipurl(this)">isEqual</a></li>
                        <li><a data-href="./subPage/JsonUtilFn.html#Copy" onclick="skipurl(this)">Copy</a></li>
                        <li><a data-href="./subPage/JsonUtilFn.html#clearCertain"
                                onclick="skipurl(this)">clearCertain</a></li>
                    </ul>
                </li>
                <li>
                    <a data-href="./subPage/NumArrayUtilFn.html" onclick="skipurl(this)">数字类型数组常用处理方法</a>
                    <ul>
                        <li><a data-href="./subPage/NumArrayUtilFn.html#min2max" onclick="skipurl(this)">min2max</a>
                        </li>
                        <li><a data-href="./subPage/NumArrayUtilFn.html#max2min" onclick="skipurl(this)">max2min</a>
                        </li>
                        <li><a data-href="./subPage/NumArrayUtilFn.html#index" onclick="skipurl(this)">index</a></li>
                        <li><a data-href="./subPage/NumArrayUtilFn.html#max" onclick="skipurl(this)">max</a></li>
                        <li><a data-href="./subPage/NumArrayUtilFn.html#min" onclick="skipurl(this)">min</a></li>
                        <li><a data-href="./subPage/NumArrayUtilFn.html#sum" onclick="skipurl(this)">sum</a></li>
                        <li><a data-href="./subPage/NumArrayUtilFn.html#avg" onclick="skipurl(this)">avg</a></li>
                        <li><a data-href="./subPage/NumArrayUtilFn.html#removeRepeatAttr"
                                onclick="skipurl(this)">removeRepeatAttr</a></li>
                    </ul>
                </li>
                <li>
                    <a data-href="./subPage/CryptoUtilFn.html" onclick="skipurl(this)">加密解密转义常用处理方法</a>
                    <ul>
                        <li><a data-href="./subPage/CryptoUtilFn.html#MD5_encryp" onclick="skipurl(this)">MD5.encryp</a>
                        </li>
                        <li><a data-href="./subPage/CryptoUtilFn.html#Escaping" onclick="skipurl(this)">Escaping</a>
                        </li>
                        <li><a data-href="./subPage/CryptoUtilFn.html#Base64_encode"
                                onclick="skipurl(this)">Base64.encode</a></li>
                        <li><a data-href="./subPage/CryptoUtilFn.html#Base64_decode"
                                onclick="skipurl(this)">Base64.decode</a></li>
                    </ul>
                </li>
                <li>
                    <a data-href="./subPage/ObjArrayUtilFn.html" onclick="skipurl(this)">对象类型数组常用处理方法（与数据库table对应）</a>
                    <ul>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#push" onclick="skipurl(this)">push</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#pop" onclick="skipurl(this)">pop</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#shift" onclick="skipurl(this)">shift</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#unshift" onclick="skipurl(this)">unshift</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#splice" onclick="skipurl(this)">splice</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#merge" onclick="skipurl(this)">merge</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#index" onclick="skipurl(this)">index</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#max" onclick="skipurl(this)">max</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#min" onclick="skipurl(this)">min</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#sum" onclick="skipurl(this)">sum</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#avg" onclick="skipurl(this)">avg</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#group" onclick="skipurl(this)">group</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#pivot" onclick="skipurl(this)">pivot</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#unpivot" onclick="skipurl(this)">unpivot</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#count" onclick="skipurl(this)">count</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#getMinRow" onclick="skipurl(this)">getMinRow</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#getMaxRow" onclick="skipurl(this)">getMaxRow</a>
                        </li>


                        <li><a data-href="./subPage/ObjArrayUtilFn.html#query" onclick="skipurl(this)">query</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#prepart" onclick="skipurl(this)">prepart</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#appart" onclick="skipurl(this)">appart</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#clearColumn"
                                onclick="skipurl(this)">clearColumn</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#retainColumn"
                                onclick="skipurl(this)">retainColumn</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#changeToArrays"
                                onclick="skipurl(this)">changeToArrays</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#toHash" onclick="skipurl(this)">toHash</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#tranTreeData"
                                onclick="skipurl(this)">tranTreeData</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#removeRepeatAttr"
                                onclick="skipurl(this)">removeRepeatAttr</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#sortBy" onclick="skipurl(this)">sortBy</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#reverse" onclick="skipurl(this)">reverse</a>
                        </li>

                        <li><a data-href="./subPage/ObjArrayUtilFn.html#page" onclick="skipurl(this)">page</a></li>

                        <li><a data-href="./subPage/ObjArrayUtilFn.html#removed" onclick="skipurl(this)">removed</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#remain" onclick="skipurl(this)">remain</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#clear" onclick="skipurl(this)">clear</a></li>

                        <li><a data-href="./subPage/ObjArrayUtilFn.html#preInsert" onclick="skipurl(this)">preInsert</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#apInsert" onclick="skipurl(this)">apInsert</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#preInserts"
                                onclick="skipurl(this)">preInserts</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#apInserts" onclick="skipurl(this)">apInserts</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#config" onclick="skipurl(this)">config</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#each" onclick="skipurl(this)">each</a></li>

                        <li><a data-href="./subPage/ObjArrayUtilFn.html#shuffle" onclick="skipurl(this)">shuffle</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#intersection"
                                onclick="skipurl(this)">intersection</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#subtract" onclick="skipurl(this)">subtract</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#union" onclick="skipurl(this)">union</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#isSameCollect"
                                onclick="skipurl(this)">isSameCollect</a></li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#isPartSet" onclick="skipurl(this)">isPartSet</a>
                        </li>
                        <li><a data-href="./subPage/ObjArrayUtilFn.html#isSubset" onclick="skipurl(this)">isSubset</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a data-href="./subPage/signTreeObjUtilFn.html" onclick="skipurl(this)">树结构Json（转为标志树）常用的处理函数</a>
                    <ul>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_toTree"
                                onclick="skipurl(this)">T.toTree</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_toTable"
                                onclick="skipurl(this)">T.toTable</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_toHash"
                                onclick="skipurl(this)">T.toHash</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_toHashMap"
                                onclick="skipurl(this)">T.toHashMap</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_toSigntree"
                                onclick="skipurl(this)">T.toSigntree</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_each" onclick="skipurl(this)">T.each</a>
                        </li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_updateNodes"
                                onclick="skipurl(this)">T.updateNodes</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_updateChilds"
                                onclick="skipurl(this)">T.updateChilds</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_updateParents"
                                onclick="skipurl(this)">T.updateParents</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_deleteNodes"
                                onclick="skipurl(this)">T.deleteNodes</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_insertNodesAfter"
                                onclick="skipurl(this)">T.insertNodesAfter</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_insertNodesBefore"
                                onclick="skipurl(this)">T.insertNodesBefore</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_insertChildNodes"
                                onclick="skipurl(this)">T.insertChildNodes</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_getSigntree"
                                onclick="skipurl(this)">T.getSigntree</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_queryNodes"
                                onclick="skipurl(this)">T.queryNodes</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_getLevelCount"
                                onclick="skipurl(this)">T.getLevelCount</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_getLevelNodes"
                                onclick="skipurl(this)">T.getLevelNodes</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_parent"
                                onclick="skipurl(this)">T.parent</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_parents"
                                onclick="skipurl(this)">T.parents</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_children"
                                onclick="skipurl(this)">T.children</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_next" onclick="skipurl(this)">T.next</a>
                        </li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_prev" onclick="skipurl(this)">T.prev</a>
                        </li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_getNode"
                                onclick="skipurl(this)">T.getNode</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_moveNode"
                                onclick="skipurl(this)">T.moveNode</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_moveNodeBefore"
                                onclick="skipurl(this)">T.moveNodeBefore</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_moveNodeAfter"
                                onclick="skipurl(this)">T.moveNodeAfter</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_moveNodeChild"
                                onclick="skipurl(this)">T.moveNodeChild</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_isHave"
                                onclick="skipurl(this)">T.isHave</a></li>
                        <li><a data-href="./subPage/signTreeObjUtilFn.html#T_query" onclick="skipurl(this)">T.query</a>
                        </li>
                    </ul>
                </li>

            </ul>
        </div>
        <div class="page-right">
            <iframe id="myFrame" frameborder="0" name="myFrame" class="page-frame"
                src="./subPage/jianjie.html"></iframe>
        </div>
    </div>
    <script>
        var myFrame = document.getElementById("myFrame");
        $("#tree").find("ul").hide();
        var skipurl = function (obj) {
            showOrHidden(obj);
            var url = obj.getAttribute('data-href');
            if (url) {
                myFrame.setAttribute('src', url);
            }
        }
        var showOrHidden = function (obj) {
            var ul = obj.parentNode;
            for (var i = 0, len = ul.childNodes.length; i < len; i++) {
                var el = ul.childNodes[i];
                if (el && el.tagName && el.tagName == 'UL') {
                    if (el.style.display == 'none') {
                        el.style.display = 'block';
                    } else {
                        el.style.display = 'none';
                    }
                }
            }
        }

        var getQueryString = function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }
        var isRightLike = function (v, value) {
            if (typeof (v) == 'string') {
                var reg = new RegExp(value + '$');
                if (reg.test(v)) {
                    return true;
                } else {
                    return false;
                }
            }
        };
        var key = getQueryString("key") || null;
        if (key) {
            key = "#" + key;
            var as = document.getElementsByTagName('a');
            for (var i = 0, a; a = as[i++];) {
                var url = a.getAttribute('data-href') || null;
                if (url) {
                    if (isRightLike(url, key)) {

                        skipurl(a);
                        break;
                    }
                }
            }


        }
    </script>
</body>

</html>